package arithmeticoperator;

/**
 * 本质：a % b = a - a / b * b
 * 改正：a = b * n + m，m为答案
 */
public class Modulo {

    public static void main(String[] args) {
        System.out.println(10 % 3);
        System.out.println(-10 % 3);
        System.out.println(10 % -3);
        System.out.println(-10 % -3);
        System.out.println(37 % 10);
        System.out.println(37.2 % 10);
    }
}
